package org.jeecg.modules.content.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: jc_content
 * @Author: jeecg-boot
 * @Date:   2020-06-23
 * @Version: V1.0
 */
@Data
@TableName("jc_content")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="jc_content对象", description="jc_content")
public class JcContent implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "主键")
    private String id;
	/**栏目*/
	@Excel(name = "栏目", width = 15, dictTable = "jc_channel", dicText = "channel_name", dicCode = "channel_code")
	@Dict(dictTable = "jc_channel", dicText = "channel_name", dicCode = "channel_code")
	@ApiModelProperty(value = "栏目")
	private String channelCode;
	/**标题*/
	@Excel(name = "标题", width = 15)
    @ApiModelProperty(value = "标题")
    private String title;
	/**简短标题*/
	@Excel(name = "简短标题", width = 15)
    @ApiModelProperty(value = "简短标题")
    private String shortTitle;
	/**作者*/
	@Excel(name = "作者", width = 15)
    @ApiModelProperty(value = "作者")
    private String author;
	/**来源*/
	@Excel(name = "来源", width = 15)
    @ApiModelProperty(value = "来源")
    private String origin;
	/**来源链接*/
	@Excel(name = "来源链接", width = 15)
    @ApiModelProperty(value = "来源链接")
    private String originUrl;
	/**描述*/
	@Excel(name = "描述", width = 15)
    @ApiModelProperty(value = "描述")
    private String description;
	/**发布日期*/
	@Excel(name = "发布日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "发布日期")
    private Date releaseDate;
	/**媒体路径*/
	@Excel(name = "媒体路径", width = 15)
    @ApiModelProperty(value = "媒体路径")
    private String mediaPath;
	/**媒体类型*/
	@Excel(name = "媒体类型", width = 15)
    @ApiModelProperty(value = "媒体类型")
    private String mediaType;
	/**标题颜色*/
	@Excel(name = "标题颜色", width = 15)
    @ApiModelProperty(value = "标题颜色")
    private String titleColor;
	/**是否加粗*/
	@Excel(name = "是否加粗", width = 15)
    @ApiModelProperty(value = "是否加粗")
    private Integer isBold;
	/**标题图片*/
	@Excel(name = "标题图片", width = 15)
    @ApiModelProperty(value = "标题图片")
    private String titleImg;
	/**内容图片*/
	@Excel(name = "内容图片", width = 15)
    @ApiModelProperty(value = "内容图片")
    private String contentImg;
	/**类型图片*/
	@Excel(name = "类型图片", width = 15)
    @ApiModelProperty(value = "类型图片")
    private String typeImg;
	/**外部链接*/
	@Excel(name = "外部链接", width = 15)
    @ApiModelProperty(value = "外部链接")
    private String link;
	/**文章内容*/
	@Excel(name = "文章内容", width = 15)
    @ApiModelProperty(value = "文章内容")
    private String content;
	/**栏目名称*/
	@Excel(name = "栏目名称", width = 15, dictTable = "sys_dict", dicText = "dict_name", dicCode = "dict_code")
	@Dict(dictTable = "sys_dict", dicText = "dict_name", dicCode = "dict_code")
    @ApiModelProperty(value = "栏目名称")
    private String channelname;

	private Date createTime;
	private Date updateTime;

	/**附件*/
	@Excel(name = "附件", width = 15)
	@ApiModelProperty(value = "附件")
	private String attachment;

	String sequence;
}
